翻訳と辞書
Words near each other
・ LMSI
・ LMSR
・ LMT
・ LMT Connection
・ LMT Regbija klubs Eži
・ LMTK2
・ LMTK3
・ LMU
・ LMule
・ LMV
・ LMX Sirex
・ LMX1A
・ LMX1B
・ LN
・ LN (band)
Ln (Unix)
・ LN postcode area
・ LN-3 Inertial Navigation System
・ LNA
・ LNAPL transmissivity
・ LNAV
・ LNB
・ LNB All-Star Game
・ LNB Pro A
・ LNB Pro A Awards
・ LNB Pro A Finals MVP
・ LNB Pro A MVP
・ LNB Pro B
・ LNBP
・ LNC


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Ln (Unix) : ウィキペディア英語版
Ln (Unix)

The ln command is a standard Unix command utility used to create a hard link (link) or a symbolic link (symlink) to an existing file. The use of a hard link allows multiple filenames to be associated with the same file since a hard link points to the inode of a given file, the data of which is stored on disk. On the other hand, symbolic links are special files that refer to other files by name.
The ln command by default creates hard links, and when called with the command line parameter ln '-s' creates symbolic links. Most operating systems prevent hard links to directories from being created since such a capability could potentially disrupt the structure of a file system and interfere with the operation of other utilities.〔(【引用サイトリンク】url=http://unix.stackexchange.com/questions/22394/why-hard-links-not-allowed-to-directories-in-unix-linux?rq=1 )〕 The ln command can however be used to create symbolic links to non-existent files.〔
== Links ==
Links allow more than one filename to refer to the same file as in the case of a hard link or act as pointers to a filename as in the case of a soft link. Both hard links and soft links can be created by the ln command. Specifically,
#Hard links also known simply as links are objects that associate the filename with the inode and therefore the file contents itself.〔 A given file on disk could have multiple links scattered through the directory hierarchy with all of the links being equivalent since they all associate with the same inode.〔 Creating a link therefore does not copy the contents of the file but merely causes another name to be associated with the same contents. Each time a hard link is created a link counter that is a part of the inode structure gets incremented; a file is not deleted until its reference count reaches zero.〔 Hard links can however only be created on the same file system; this can prove to be a particular disadvantage.
#Symbolic links are special files which when encountered during pathname resolution modify the (pathname resolution ) to be taken to the location which the symbolic link contains. The content of the symbolic link is therefore the destination path string, which can also be examined using the readlink command line utility. The symbolic link may contain an arbitrary string which does not refer to the location of an existing file, such a symbolic link will fail until a file is created at the location which is contained by the symbolic link. By contrast a symbolic link to an existing file will fail if the existing file is moved to a different location (or renamed).

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Ln (Unix)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.